<?php

namespace App\Http\Requests\Api;

class LoginRequest extends BaseRequest
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'username'=>'required|string|max:20|min:3',
			'password'=>'required|string|max:16|min:3',
        ];
    }

	public function attributes()
    {
		return [
			'username'=>'用户名',
			'password'=>'密码',
		];
    }
}
